package CreateTable

import (
	"ZK306/common/inits"
	"ZK306/common/models"
	"fmt"
)

func CreateTable() {
	err := inits.DB.Debug().AutoMigrate(&models.User{})
	if err != nil {
		panic(err)
	}
	fmt.Println("数据迁移成功")
}
